import { color } from '../config'
import { Cylinder } from './cylinder'
export class Wall {
  constructor(scene, time) {
    this.scene = scene
    this.time = time
    this.config = {
      radius: 50,
      height: 50,
      color: color.wall,
      opacity: 0.6,
      speed: 1.0,
      open: true, // 是否打开顶部和底部
      position: {
        x: 0,
        y: 0,
        z: 0
      }
    }
    this.createWall()
  }
  createWall() {
    new Cylinder(this.scene, this.time).createCylinder(this.config)
  }
}
